<template>
    <div>
        <p>我是孙子--{{ msg }}</p>
    </div>
</template>

<script>
export default {
    data() {
        return {
        }
    },
    inject: ['msg'],
    mounted() {
        console.log('this-grandson', this);
    }
}
</script>
<style scoped></style>